package online.interceptor;

import online.config.GlobleConfig;
import org.omg.PortableInterceptor.Interceptor;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @Auther: 狼芒
 * @Date: 2021/9/1 23:48
 * @Descrintion:
 * @version: 1.0
 */
public class GlobleInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        GlobleConfig.globleSession = request.getSession();
        return true;
    }
}
